pub fn rc_to_desc_string(rc: i32) -> String {
    match rc {
        0 => String::from("MQRC_NONE"),
        2001 => String::from("MQRC_ALIAS_BASE_Q_TYPE_ERROR"),
        2002 => String::from("MQRC_ALREADY_CONNECTED"),
        2003 => String::from("MQRC_BACKED_OUT"),
        2004 => String::from("MQRC_BUFFER_ERROR"),
        2005 => String::from("MQRC_BUFFER_LENGTH_ERROR"),
        2006 => String::from("MQRC_CHAR_ATTR_LENGTH_ERROR"),
        2007 => String::from("MQRC_CHAR_ATTRS_ERROR"),
        2008 => String::from("MQRC_CHAR_ATTRS_TOO_SHORT"),
        2009 => String::from("MQRC_CONNECTION_BROKEN"),
        2010 => String::from("MQRC_DATA_LENGTH_ERROR"),
        2011 => String::from("MQRC_DYNAMIC_Q_NAME_ERROR"),
        2012 => String::from("MQRC_ENVIRONMENT_ERROR"),
        2013 => String::from("MQRC_EXPIRY_ERROR"),
        2014 => String::from("MQRC_FEEDBACK_ERROR"),
        2016 => String::from("MQRC_GET_INHIBITED"),
        2017 => String::from("MQRC_HANDLE_NOT_AVAILABLE"),
        2018 => String::from("MQRC_HCONN_ERROR"),
        2019 => String::from("MQRC_HOBJ_ERROR"),
        2020 => String::from("MQRC_INHIBIT_VALUE_ERROR"),
        2021 => String::from("MQRC_INT_ATTR_COUNT_ERROR"),
        2022 => String::from("MQRC_INT_ATTR_COUNT_TOO_SMALL"),
        2023 => String::from("MQRC_INT_ATTRS_ARRAY_ERROR"),
        2024 => String::from("MQRC_SYNCPOINT_LIMIT_REACHED"),
        2025 => String::from("MQRC_MAX_CONNS_LIMIT_REACHED"),
        2026 => String::from("MQRC_MD_ERROR"),
        2027 => String::from("MQRC_MISSING_REPLY_TO_Q"),
        2029 => String::from("MQRC_MSG_TYPE_ERROR"),
        2030 => String::from("MQRC_MSG_TOO_BIG_FOR_Q"),
        2031 => String::from("MQRC_MSG_TOO_BIG_FOR_Q_MGR"),
        2033 => String::from("MQRC_NO_MSG_AVAILABLE"),
        2034 => String::from("MQRC_NO_MSG_UNDER_CURSOR"),
        2035 => String::from("MQRC_NOT_AUTHORIZED"),
        2036 => String::from("MQRC_NOT_OPEN_FOR_BROWSE"),
        2037 => String::from("MQRC_NOT_OPEN_FOR_INPUT"),
        2038 => String::from("MQRC_NOT_OPEN_FOR_INQUIRE"),
        2039 => String::from("MQRC_NOT_OPEN_FOR_OUTPUT"),
        2040 => String::from("MQRC_NOT_OPEN_FOR_SET"),
        2041 => String::from("MQRC_OBJECT_CHANGED"),
        2042 => String::from("MQRC_OBJECT_IN_USE"),
        2043 => String::from("MQRC_OBJECT_TYPE_ERROR"),
        2044 => String::from("MQRC_OD_ERROR"),
        2045 => String::from("MQRC_OPTION_NOT_VALID_FOR_TYPE"),
        2046 => String::from("MQRC_OPTIONS_ERROR"),
        2047 => String::from("MQRC_PERSISTENCE_ERROR"),
        2048 => String::from("MQRC_PERSISTENT_NOT_ALLOWED"),
        2049 => String::from("MQRC_PRIORITY_EXCEEDS_MAXIMUM"),
        2050 => String::from("MQRC_PRIORITY_ERROR"),
        2051 => String::from("MQRC_PUT_INHIBITED"),
        2052 => String::from("MQRC_Q_DELETED"),
        2053 => String::from("MQRC_Q_FULL"),
        2055 => String::from("MQRC_Q_NOT_EMPTY"),
        2056 => String::from("MQRC_Q_SPACE_NOT_AVAILABLE"),
        2057 => String::from("MQRC_Q_TYPE_ERROR"),
        2058 => String::from("MQRC_Q_MGR_NAME_ERROR"),
        2059 => String::from("MQRC_Q_MGR_NOT_AVAILABLE"),
        2061 => String::from("MQRC_REPORT_OPTIONS_ERROR"),
        2062 => String::from("MQRC_SECOND_MARK_NOT_ALLOWED"),
        2063 => String::from("MQRC_SECURITY_ERROR"),
        2065 => String::from("MQRC_SELECTOR_COUNT_ERROR"),
        2066 => String::from("MQRC_SELECTOR_LIMIT_EXCEEDED"),
        2067 => String::from("MQRC_SELECTOR_ERROR"),
        2068 => String::from("MQRC_SELECTOR_NOT_FOR_TYPE"),
        2069 => String::from("MQRC_SIGNAL_OUTSTANDING"),
        2070 => String::from("MQRC_SIGNAL_REQUEST_ACCEPTED"),
        2071 => String::from("MQRC_STORAGE_NOT_AVAILABLE"),
        2072 => String::from("MQRC_SYNCPOINT_NOT_AVAILABLE"),
        2075 => String::from("MQRC_TRIGGER_CONTROL_ERROR"),
        2076 => String::from("MQRC_TRIGGER_DEPTH_ERROR"),
        2077 => String::from("MQRC_TRIGGER_MSG_PRIORITY_ERR"),
        2078 => String::from("MQRC_TRIGGER_TYPE_ERROR"),
        2079 => String::from("MQRC_TRUNCATED_MSG_ACCEPTED"),
        2080 => String::from("MQRC_TRUNCATED_MSG_FAILED"),
        2082 => String::from("MQRC_UNKNOWN_ALIAS_BASE_Q"),
        2085 => String::from("MQRC_UNKNOWN_OBJECT_NAME"),
        2086 => String::from("MQRC_UNKNOWN_OBJECT_Q_MGR"),
        2087 => String::from("MQRC_UNKNOWN_REMOTE_Q_MGR"),
        2090 => String::from("MQRC_WAIT_INTERVAL_ERROR"),
        2091 => String::from("MQRC_XMIT_Q_TYPE_ERROR"),
        2092 => String::from("MQRC_XMIT_Q_USAGE_ERROR"),
        2093 => String::from("MQRC_NOT_OPEN_FOR_PASS_ALL"),
        2094 => String::from("MQRC_NOT_OPEN_FOR_PASS_IDENT"),
        2095 => String::from("MQRC_NOT_OPEN_FOR_SET_ALL"),
        2096 => String::from("MQRC_NOT_OPEN_FOR_SET_IDENT"),
        2097 => String::from("MQRC_CONTEXT_HANDLE_ERROR"),
        2098 => String::from("MQRC_CONTEXT_NOT_AVAILABLE"),
        2099 => String::from("MQRC_SIGNAL1_ERROR"),
        2100 => String::from("MQRC_OBJECT_ALREADY_EXISTS"),
        2101 => String::from("MQRC_OBJECT_DAMAGED"),
        2102 => String::from("MQRC_RESOURCE_PROBLEM"),
        2103 => String::from("MQRC_ANOTHER_Q_MGR_CONNECTED"),
        2104 => String::from("MQRC_UNKNOWN_REPORT_OPTION"),
        2105 => String::from("MQRC_STORAGE_CLASS_ERROR"),
        2106 => String::from("MQRC_COD_NOT_VALID_FOR_XCF_Q"),
        2107 => String::from("MQRC_XWAIT_CANCELED"),
        2108 => String::from("MQRC_XWAIT_ERROR"),
        2109 => String::from("MQRC_SUPPRESSED_BY_EXIT"),
        2110 => String::from("MQRC_FORMAT_ERROR"),
        2111 => String::from("MQRC_SOURCE_CCSID_ERROR"),
        2112 => String::from("MQRC_SOURCE_INTEGER_ENC_ERROR"),
        2113 => String::from("MQRC_SOURCE_DECIMAL_ENC_ERROR"),
        2114 => String::from("MQRC_SOURCE_FLOAT_ENC_ERROR"),
        2115 => String::from("MQRC_TARGET_CCSID_ERROR"),
        2116 => String::from("MQRC_TARGET_INTEGER_ENC_ERROR"),
        2117 => String::from("MQRC_TARGET_DECIMAL_ENC_ERROR"),
        2118 => String::from("MQRC_TARGET_FLOAT_ENC_ERROR"),
        2119 => String::from("MQRC_NOT_CONVERTED"),
        2120 => String::from("MQRC_TRUNCATED"),
        2121 => String::from("MQRC_NO_EXTERNAL_PARTICIPANTS"),
        2122 => String::from("MQRC_PARTICIPANT_NOT_AVAILABLE"),
        2123 => String::from("MQRC_OUTCOME_MIXED"),
        2124 => String::from("MQRC_OUTCOME_PENDING"),
        2125 => String::from("MQRC_BRIDGE_STARTED"),
        2126 => String::from("MQRC_BRIDGE_STOPPED"),
        2127 => String::from("MQRC_ADAPTER_STORAGE_SHORTAGE"),
        2128 => String::from("MQRC_UOW_IN_PROGRESS"),
        2129 => String::from("MQRC_ADAPTER_CONN_LOAD_ERROR"),
        2130 => String::from("MQRC_ADAPTER_SERV_LOAD_ERROR"),
        2131 => String::from("MQRC_ADAPTER_DEFS_ERROR"),
        2132 => String::from("MQRC_ADAPTER_DEFS_LOAD_ERROR"),
        2133 => String::from("MQRC_ADAPTER_CONV_LOAD_ERROR"),
        2134 => String::from("MQRC_BO_ERROR"),
        2135 => String::from("MQRC_DH_ERROR"),
        2136 => String::from("MQRC_MULTIPLE_REASONS"),
        2137 => String::from("MQRC_OPEN_FAILED"),
        2138 => String::from("MQRC_ADAPTER_DISC_LOAD_ERROR"),
        2139 => String::from("MQRC_CNO_ERROR"),
        2140 => String::from("MQRC_CICS_WAIT_FAILED"),
        2141 => String::from("MQRC_DLH_ERROR"),
        2142 => String::from("MQRC_HEADER_ERROR"),
        2143 => String::from("MQRC_SOURCE_LENGTH_ERROR"),
        2144 => String::from("MQRC_TARGET_LENGTH_ERROR"),
        2145 => String::from("MQRC_SOURCE_BUFFER_ERROR"),
        2146 => String::from("MQRC_TARGET_BUFFER_ERROR"),
        2148 => String::from("MQRC_IIH_ERROR"),
        2149 => String::from("MQRC_PCF_ERROR"),
        2150 => String::from("MQRC_DBCS_ERROR"),
        2152 => String::from("MQRC_OBJECT_NAME_ERROR"),
        2153 => String::from("MQRC_OBJECT_Q_MGR_NAME_ERROR"),
        2154 => String::from("MQRC_RECS_PRESENT_ERROR"),
        2155 => String::from("MQRC_OBJECT_RECORDS_ERROR"),
        2156 => String::from("MQRC_RESPONSE_RECORDS_ERROR"),
        2157 => String::from("MQRC_ASID_MISMATCH"),
        2158 => String::from("MQRC_PMO_RECORD_FLAGS_ERROR"),
        2159 => String::from("MQRC_PUT_MSG_RECORDS_ERROR"),
        2160 => String::from("MQRC_CONN_ID_IN_USE"),
        2161 => String::from("MQRC_Q_MGR_QUIESCING"),
        2162 => String::from("MQRC_Q_MGR_STOPPING"),
        2163 => String::from("MQRC_DUPLICATE_RECOV_COORD"),
        2173 => String::from("MQRC_PMO_ERROR"),
        2182 => String::from("MQRC_API_EXIT_NOT_FOUND"),
        2183 => String::from("MQRC_API_EXIT_LOAD_ERROR"),
        2184 => String::from("MQRC_REMOTE_Q_NAME_ERROR"),
        2185 => String::from("MQRC_INCONSISTENT_PERSISTENCE"),
        2186 => String::from("MQRC_GMO_ERROR"),
        2187 => String::from("MQRC_CICS_BRIDGE_RESTRICTION"),
        2188 => String::from("MQRC_STOPPED_BY_CLUSTER_EXIT"),
        2189 => String::from("MQRC_CLUSTER_RESOLUTION_ERROR"),
        2190 => String::from("MQRC_CONVERTED_STRING_TOO_BIG"),
        2191 => String::from("MQRC_TMC_ERROR"),
        2192 => String::from("MQRC_PAGESET_FULL"),
        2193 => String::from("MQRC_PAGESET_ERROR"),
        2194 => String::from("MQRC_NAME_NOT_VALID_FOR_TYPE"),
        2195 => String::from("MQRC_UNEXPECTED_ERROR"),
        2196 => String::from("MQRC_UNKNOWN_XMIT_Q"),
        2197 => String::from("MQRC_UNKNOWN_DEF_XMIT_Q"),
        2198 => String::from("MQRC_DEF_XMIT_Q_TYPE_ERROR"),
        2199 => String::from("MQRC_DEF_XMIT_Q_USAGE_ERROR"),
        2200 => String::from("MQRC_MSG_MARKED_BROWSE_CO_OP"),
        2201 => String::from("MQRC_NAME_IN_USE"),
        2202 => String::from("MQRC_CONNECTION_QUIESCING"),
        2203 => String::from("MQRC_CONNECTION_STOPPING"),
        2204 => String::from("MQRC_ADAPTER_NOT_AVAILABLE"),
        2206 => String::from("MQRC_MSG_ID_ERROR"),
        2207 => String::from("MQRC_CORREL_ID_ERROR"),
        2208 => String::from("MQRC_FILE_SYSTEM_ERROR"),
        2209 => String::from("MQRC_NO_MSG_LOCKED"),
        2210 => String::from("MQRC_SOAP_DOTNET_ERROR"),
        2211 => String::from("MQRC_SOAP_AXIS_ERROR"),
        2212 => String::from("MQRC_SOAP_URL_ERROR"),
        2216 => String::from("MQRC_FILE_NOT_AUDITED"),
        2217 => String::from("MQRC_CONNECTION_NOT_AUTHORIZED"),
        2218 => String::from("MQRC_MSG_TOO_BIG_FOR_CHANNEL"),
        2219 => String::from("MQRC_CALL_IN_PROGRESS"),
        2220 => String::from("MQRC_RMH_ERROR"),
        2222 => String::from("MQRC_Q_MGR_ACTIVE"),
        2223 => String::from("MQRC_Q_MGR_NOT_ACTIVE"),
        2224 => String::from("MQRC_Q_DEPTH_HIGH"),
        2225 => String::from("MQRC_Q_DEPTH_LOW"),
        2226 => String::from("MQRC_Q_SERVICE_INTERVAL_HIGH"),
        2227 => String::from("MQRC_Q_SERVICE_INTERVAL_OK"),
        2228 => String::from("MQRC_RFH_HEADER_FIELD_ERROR"),
        2229 => String::from("MQRC_RAS_PROPERTY_ERROR"),
        2232 => String::from("MQRC_UNIT_OF_WORK_NOT_STARTED"),
        2233 => String::from("MQRC_CHANNEL_AUTO_DEF_OK"),
        2234 => String::from("MQRC_CHANNEL_AUTO_DEF_ERROR"),
        2235 => String::from("MQRC_CFH_ERROR"),
        2236 => String::from("MQRC_CFIL_ERROR"),
        2237 => String::from("MQRC_CFIN_ERROR"),
        2238 => String::from("MQRC_CFSL_ERROR"),
        2239 => String::from("MQRC_CFST_ERROR"),
        2241 => String::from("MQRC_INCOMPLETE_GROUP"),
        2242 => String::from("MQRC_INCOMPLETE_MSG"),
        2243 => String::from("MQRC_INCONSISTENT_CCSIDS"),
        2244 => String::from("MQRC_INCONSISTENT_ENCODINGS"),
        2245 => String::from("MQRC_INCONSISTENT_UOW"),
        2246 => String::from("MQRC_INVALID_MSG_UNDER_CURSOR"),
        2247 => String::from("MQRC_MATCH_OPTIONS_ERROR"),
        2248 => String::from("MQRC_MDE_ERROR"),
        2249 => String::from("MQRC_MSG_FLAGS_ERROR"),
        2250 => String::from("MQRC_MSG_SEQ_NUMBER_ERROR"),
        2251 => String::from("MQRC_OFFSET_ERROR"),
        2252 => String::from("MQRC_ORIGINAL_LENGTH_ERROR"),
        2253 => String::from("MQRC_SEGMENT_LENGTH_ZERO"),
        2255 => String::from("MQRC_UOW_NOT_AVAILABLE"),
        2256 => String::from("MQRC_WRONG_GMO_VERSION"),
        2257 => String::from("MQRC_WRONG_MD_VERSION"),
        2258 => String::from("MQRC_GROUP_ID_ERROR"),
        2259 => String::from("MQRC_INCONSISTENT_BROWSE"),
        2260 => String::from("MQRC_XQH_ERROR"),
        2261 => String::from("MQRC_SRC_ENV_ERROR"),
        2262 => String::from("MQRC_SRC_NAME_ERROR"),
        2263 => String::from("MQRC_DEST_ENV_ERROR"),
        2264 => String::from("MQRC_DEST_NAME_ERROR"),
        2265 => String::from("MQRC_TM_ERROR"),
        2266 => String::from("MQRC_CLUSTER_EXIT_ERROR"),
        2267 => String::from("MQRC_CLUSTER_EXIT_LOAD_ERROR"),
        2268 => String::from("MQRC_CLUSTER_PUT_INHIBITED"),
        2269 => String::from("MQRC_CLUSTER_RESOURCE_ERROR"),
        2270 => String::from("MQRC_NO_DESTINATIONS_AVAILABLE"),
        2271 => String::from("MQRC_CONN_TAG_IN_USE"),
        2272 => String::from("MQRC_PARTIALLY_CONVERTED"),
        2273 => String::from("MQRC_CONNECTION_ERROR"),
        2274 => String::from("MQRC_OPTION_ENVIRONMENT_ERROR"),
        2277 => String::from("MQRC_CD_ERROR"),
        2278 => String::from("MQRC_CLIENT_CONN_ERROR"),
        2279 => String::from("MQRC_CHANNEL_STOPPED_BY_USER"),
        2280 => String::from("MQRC_HCONFIG_ERROR"),
        2281 => String::from("MQRC_FUNCTION_ERROR"),
        2282 => String::from("MQRC_CHANNEL_STARTED"),
        2283 => String::from("MQRC_CHANNEL_STOPPED"),
        2284 => String::from("MQRC_CHANNEL_CONV_ERROR"),
        2285 => String::from("MQRC_SERVICE_NOT_AVAILABLE"),
        2286 => String::from("MQRC_INITIALIZATION_FAILED"),
        2287 => String::from("MQRC_TERMINATION_FAILED"),
        2288 => String::from("MQRC_UNKNOWN_Q_NAME"),
        2289 => String::from("MQRC_SERVICE_ERROR"),
        2290 => String::from("MQRC_Q_ALREADY_EXISTS"),
        2291 => String::from("MQRC_USER_ID_NOT_AVAILABLE"),
        2292 => String::from("MQRC_UNKNOWN_ENTITY"),
        2293 => String::from("MQRC_UNKNOWN_AUTH_ENTITY"),
        2294 => String::from("MQRC_UNKNOWN_REF_OBJECT"),
        2295 => String::from("MQRC_CHANNEL_ACTIVATED"),
        2296 => String::from("MQRC_CHANNEL_NOT_ACTIVATED"),
        2297 => String::from("MQRC_UOW_CANCELED"),
        2298 => String::from("MQRC_FUNCTION_NOT_SUPPORTED"),
        2299 => String::from("MQRC_SELECTOR_TYPE_ERROR"),
        2300 => String::from("MQRC_COMMAND_TYPE_ERROR"),
        2301 => String::from("MQRC_MULTIPLE_INSTANCE_ERROR"),
        2302 => String::from("MQRC_SYSTEM_ITEM_NOT_ALTERABLE"),
        2303 => String::from("MQRC_BAG_CONVERSION_ERROR"),
        2304 => String::from("MQRC_SELECTOR_OUT_OF_RANGE"),
        2305 => String::from("MQRC_SELECTOR_NOT_UNIQUE"),
        2306 => String::from("MQRC_INDEX_NOT_PRESENT"),
        2307 => String::from("MQRC_STRING_ERROR"),
        2308 => String::from("MQRC_ENCODING_NOT_SUPPORTED"),
        2309 => String::from("MQRC_SELECTOR_NOT_PRESENT"),
        2310 => String::from("MQRC_OUT_SELECTOR_ERROR"),
        2311 => String::from("MQRC_STRING_TRUNCATED"),
        2312 => String::from("MQRC_SELECTOR_WRONG_TYPE"),
        2313 => String::from("MQRC_INCONSISTENT_ITEM_TYPE"),
        2314 => String::from("MQRC_INDEX_ERROR"),
        2315 => String::from("MQRC_SYSTEM_BAG_NOT_ALTERABLE"),
        2316 => String::from("MQRC_ITEM_COUNT_ERROR"),
        2317 => String::from("MQRC_FORMAT_NOT_SUPPORTED"),
        2318 => String::from("MQRC_SELECTOR_NOT_SUPPORTED"),
        2319 => String::from("MQRC_ITEM_VALUE_ERROR"),
        2320 => String::from("MQRC_HBAG_ERROR"),
        2321 => String::from("MQRC_PARAMETER_MISSING"),
        2322 => String::from("MQRC_CMD_SERVER_NOT_AVAILABLE"),
        2323 => String::from("MQRC_STRING_LENGTH_ERROR"),
        2324 => String::from("MQRC_INQUIRY_COMMAND_ERROR"),
        2325 => String::from("MQRC_NESTED_BAG_NOT_SUPPORTED"),
        2326 => String::from("MQRC_BAG_WRONG_TYPE"),
        2327 => String::from("MQRC_ITEM_TYPE_ERROR"),
        2328 => String::from("MQRC_SYSTEM_BAG_NOT_DELETABLE"),
        2329 => String::from("MQRC_SYSTEM_ITEM_NOT_DELETABLE"),
        2330 => String::from("MQRC_CODED_CHAR_SET_ID_ERROR"),
        2331 => String::from("MQRC_MSG_TOKEN_ERROR"),
        2332 => String::from("MQRC_MISSING_WIH"),
        2333 => String::from("MQRC_WIH_ERROR"),
        2334 => String::from("MQRC_RFH_ERROR"),
        2335 => String::from("MQRC_RFH_STRING_ERROR"),
        2336 => String::from("MQRC_RFH_COMMAND_ERROR"),
        2337 => String::from("MQRC_RFH_PARM_ERROR"),
        2338 => String::from("MQRC_RFH_DUPLICATE_PARM"),
        2339 => String::from("MQRC_RFH_PARM_MISSING"),
        2340 => String::from("MQRC_CHAR_CONVERSION_ERROR"),
        2341 => String::from("MQRC_UCS2_CONVERSION_ERROR"),
        2342 => String::from("MQRC_DB2_NOT_AVAILABLE"),
        2343 => String::from("MQRC_OBJECT_NOT_UNIQUE"),
        2344 => String::from("MQRC_CONN_TAG_NOT_RELEASED"),
        2345 => String::from("MQRC_CF_NOT_AVAILABLE"),
        2346 => String::from("MQRC_CF_STRUC_IN_USE"),
        2347 => String::from("MQRC_CF_STRUC_LIST_HDR_IN_USE"),
        2348 => String::from("MQRC_CF_STRUC_AUTH_FAILED"),
        2349 => String::from("MQRC_CF_STRUC_ERROR"),
        2350 => String::from("MQRC_CONN_TAG_NOT_USABLE"),
        2351 => String::from("MQRC_GLOBAL_UOW_CONFLICT"),
        2352 => String::from("MQRC_LOCAL_UOW_CONFLICT"),
        2353 => String::from("MQRC_HANDLE_IN_USE_FOR_UOW"),
        2354 => String::from("MQRC_UOW_ENLISTMENT_ERROR"),
        2355 => String::from("MQRC_UOW_MIX_NOT_SUPPORTED"),
        2356 => String::from("MQRC_WXP_ERROR"),
        2357 => String::from("MQRC_CURRENT_RECORD_ERROR"),
        2358 => String::from("MQRC_NEXT_OFFSET_ERROR"),
        2359 => String::from("MQRC_NO_RECORD_AVAILABLE"),
        2360 => String::from("MQRC_OBJECT_LEVEL_INCOMPATIBLE"),
        2361 => String::from("MQRC_NEXT_RECORD_ERROR"),
        2362 => String::from("MQRC_BACKOUT_THRESHOLD_REACHED"),
        2363 => String::from("MQRC_MSG_NOT_MATCHED"),
        2364 => String::from("MQRC_JMS_FORMAT_ERROR"),
        2365 => String::from("MQRC_SEGMENTS_NOT_SUPPORTED"),
        2366 => String::from("MQRC_WRONG_CF_LEVEL"),
        2367 => String::from("MQRC_CONFIG_CREATE_OBJECT"),
        2368 => String::from("MQRC_CONFIG_CHANGE_OBJECT"),
        2369 => String::from("MQRC_CONFIG_DELETE_OBJECT"),
        2370 => String::from("MQRC_CONFIG_REFRESH_OBJECT"),
        2371 => String::from("MQRC_CHANNEL_SSL_ERROR"),
        2372 => String::from("MQRC_PARTICIPANT_NOT_DEFINED"),
        2373 => String::from("MQRC_CF_STRUC_FAILED"),
        2374 => String::from("MQRC_API_EXIT_ERROR"),
        2375 => String::from("MQRC_API_EXIT_INIT_ERROR"),
        2376 => String::from("MQRC_API_EXIT_TERM_ERROR"),
        2377 => String::from("MQRC_EXIT_REASON_ERROR"),
        2378 => String::from("MQRC_RESERVED_VALUE_ERROR"),
        2379 => String::from("MQRC_NO_DATA_AVAILABLE"),
        2380 => String::from("MQRC_SCO_ERROR"),
        2381 => String::from("MQRC_KEY_REPOSITORY_ERROR"),
        2382 => String::from("MQRC_CRYPTO_HARDWARE_ERROR"),
        2383 => String::from("MQRC_AUTH_INFO_REC_COUNT_ERROR"),
        2384 => String::from("MQRC_AUTH_INFO_REC_ERROR"),
        2385 => String::from("MQRC_AIR_ERROR"),
        2386 => String::from("MQRC_AUTH_INFO_TYPE_ERROR"),
        2387 => String::from("MQRC_AUTH_INFO_CONN_NAME_ERROR"),
        2388 => String::from("MQRC_LDAP_USER_NAME_ERROR"),
        2389 => String::from("MQRC_LDAP_USER_NAME_LENGTH_ERR"),
        2390 => String::from("MQRC_LDAP_PASSWORD_ERROR"),
        2391 => String::from("MQRC_SSL_ALREADY_INITIALIZED"),
        2392 => String::from("MQRC_SSL_CONFIG_ERROR"),
        2393 => String::from("MQRC_SSL_INITIALIZATION_ERROR"),
        2394 => String::from("MQRC_Q_INDEX_TYPE_ERROR"),
        2395 => String::from("MQRC_CFBS_ERROR"),
        2396 => String::from("MQRC_SSL_NOT_ALLOWED"),
        2397 => String::from("MQRC_JSSE_ERROR"),
        2398 => String::from("MQRC_SSL_PEER_NAME_MISMATCH"),
        2399 => String::from("MQRC_SSL_PEER_NAME_ERROR"),
        2400 => String::from("MQRC_UNSUPPORTED_CIPHER_SUITE"),
        2401 => String::from("MQRC_SSL_CERTIFICATE_REVOKED"),
        2402 => String::from("MQRC_SSL_CERT_STORE_ERROR"),
        2406 => String::from("MQRC_CLIENT_EXIT_LOAD_ERROR"),
        2407 => String::from("MQRC_CLIENT_EXIT_ERROR"),
        2408 => String::from("MQRC_UOW_COMMITTED"),
        2409 => String::from("MQRC_SSL_KEY_RESET_ERROR"),
        2410 => String::from("MQRC_UNKNOWN_COMPONENT_NAME"),
        2411 => String::from("MQRC_LOGGER_STATUS"),
        2412 => String::from("MQRC_COMMAND_MQSC"),
        2413 => String::from("MQRC_COMMAND_PCF"),
        2414 => String::from("MQRC_CFIF_ERROR"),
        2415 => String::from("MQRC_CFSF_ERROR"),
        2416 => String::from("MQRC_CFGR_ERROR"),
        2417 => String::from("MQRC_MSG_NOT_ALLOWED_IN_GROUP"),
        2418 => String::from("MQRC_FILTER_OPERATOR_ERROR"),
        2419 => String::from("MQRC_NESTED_SELECTOR_ERROR"),
        2420 => String::from("MQRC_EPH_ERROR"),
        2421 => String::from("MQRC_RFH_FORMAT_ERROR"),
        2422 => String::from("MQRC_CFBF_ERROR"),
        2423 => String::from("MQRC_CLIENT_CHANNEL_CONFLICT"),
        2424 => String::from("MQRC_SD_ERROR"),
        2425 => String::from("MQRC_TOPIC_STRING_ERROR"),
        2426 => String::from("MQRC_STS_ERROR"),
        2428 => String::from("MQRC_NO_SUBSCRIPTION"),
        2429 => String::from("MQRC_SUBSCRIPTION_IN_USE"),
        2430 => String::from("MQRC_STAT_TYPE_ERROR"),
        2431 => String::from("MQRC_SUB_USER_DATA_ERROR"),
        2432 => String::from("MQRC_SUB_ALREADY_EXISTS"),
        2434 => String::from("MQRC_IDENTITY_MISMATCH"),
        2435 => String::from("MQRC_ALTER_SUB_ERROR"),
        2436 => String::from("MQRC_DURABILITY_NOT_ALLOWED"),
        2437 => String::from("MQRC_NO_RETAINED_MSG"),
        2438 => String::from("MQRC_SRO_ERROR"),
        2440 => String::from("MQRC_SUB_NAME_ERROR"),
        2441 => String::from("MQRC_OBJECT_STRING_ERROR"),
        2442 => String::from("MQRC_PROPERTY_NAME_ERROR"),
        2443 => String::from("MQRC_SEGMENTATION_NOT_ALLOWED"),
        2444 => String::from("MQRC_CBD_ERROR"),
        2445 => String::from("MQRC_CTLO_ERROR"),
        2446 => String::from("MQRC_NO_CALLBACKS_ACTIVE"),
        2448 => String::from("MQRC_CALLBACK_NOT_REGISTERED"),
        2457 => String::from("MQRC_OPTIONS_CHANGED"),
        2458 => String::from("MQRC_READ_AHEAD_MSGS"),
        2459 => String::from("MQRC_SELECTOR_SYNTAX_ERROR"),
        2460 => String::from("MQRC_HMSG_ERROR"),
        2461 => String::from("MQRC_CMHO_ERROR"),
        2462 => String::from("MQRC_DMHO_ERROR"),
        2463 => String::from("MQRC_SMPO_ERROR"),
        2464 => String::from("MQRC_IMPO_ERROR"),
        2465 => String::from("MQRC_PROPERTY_NAME_TOO_BIG"),
        2466 => String::from("MQRC_PROP_VALUE_NOT_CONVERTED"),
        2467 => String::from("MQRC_PROP_TYPE_NOT_SUPPORTED"),
        2469 => String::from("MQRC_PROPERTY_VALUE_TOO_BIG"),
        2470 => String::from("MQRC_PROP_CONV_NOT_SUPPORTED"),
        2471 => String::from("MQRC_PROPERTY_NOT_AVAILABLE"),
        2472 => String::from("MQRC_PROP_NUMBER_FORMAT_ERROR"),
        2473 => String::from("MQRC_PROPERTY_TYPE_ERROR"),
        2478 => String::from("MQRC_PROPERTIES_TOO_BIG"),
        2479 => String::from("MQRC_PUT_NOT_RETAINED"),
        2480 => String::from("MQRC_ALIAS_TARGTYPE_CHANGED"),
        2481 => String::from("MQRC_DMPO_ERROR"),
        2482 => String::from("MQRC_PD_ERROR"),
        2483 => String::from("MQRC_CALLBACK_TYPE_ERROR"),
        2484 => String::from("MQRC_CBD_OPTIONS_ERROR"),
        2485 => String::from("MQRC_MAX_MSG_LENGTH_ERROR"),
        2486 => String::from("MQRC_CALLBACK_ROUTINE_ERROR"),
        2487 => String::from("MQRC_CALLBACK_LINK_ERROR"),
        2488 => String::from("MQRC_OPERATION_ERROR"),
        2489 => String::from("MQRC_BMHO_ERROR"),
        2490 => String::from("MQRC_UNSUPPORTED_PROPERTY"),
        2492 => String::from("MQRC_PROP_NAME_NOT_CONVERTED"),
        2494 => String::from("MQRC_GET_ENABLED"),
        2495 => String::from("MQRC_MODULE_NOT_FOUND"),
        2496 => String::from("MQRC_MODULE_INVALID"),
        2497 => String::from("MQRC_MODULE_ENTRY_NOT_FOUND"),
        2498 => String::from("MQRC_MIXED_CONTENT_NOT_ALLOWED"),
        2499 => String::from("MQRC_MSG_HANDLE_IN_USE"),
        2500 => String::from("MQRC_HCONN_ASYNC_ACTIVE"),
        2501 => String::from("MQRC_MHBO_ERROR"),
        2502 => String::from("MQRC_PUBLICATION_FAILURE"),
        2503 => String::from("MQRC_SUB_INHIBITED"),
        2504 => String::from("MQRC_SELECTOR_ALWAYS_FALSE"),
        2507 => String::from("MQRC_XEPO_ERROR"),
        2509 => String::from("MQRC_DURABILITY_NOT_ALTERABLE"),
        2510 => String::from("MQRC_TOPIC_NOT_ALTERABLE"),
        2512 => String::from("MQRC_SUBLEVEL_NOT_ALTERABLE"),
        2513 => String::from("MQRC_PROPERTY_NAME_LENGTH_ERR"),
        2514 => String::from("MQRC_DUPLICATE_GROUP_SUB"),
        2515 => String::from("MQRC_GROUPING_NOT_ALTERABLE"),
        2516 => String::from("MQRC_SELECTOR_INVALID_FOR_TYPE"),
        2517 => String::from("MQRC_HOBJ_QUIESCED"),
        2518 => String::from("MQRC_HOBJ_QUIESCED_NO_MSGS"),
        2519 => String::from("MQRC_SELECTION_STRING_ERROR"),
        2520 => String::from("MQRC_RES_OBJECT_STRING_ERROR"),
        2521 => String::from("MQRC_CONNECTION_SUSPENDED"),
        2522 => String::from("MQRC_INVALID_DESTINATION"),
        2523 => String::from("MQRC_INVALID_SUBSCRIPTION"),
        2524 => String::from("MQRC_SELECTOR_NOT_ALTERABLE"),
        2525 => String::from("MQRC_RETAINED_MSG_Q_ERROR"),
        2526 => String::from("MQRC_RETAINED_NOT_DELIVERED"),
        2527 => String::from("MQRC_RFH_RESTRICTED_FORMAT_ERR"),
        2528 => String::from("MQRC_CONNECTION_STOPPED"),
        2529 => String::from("MQRC_ASYNC_UOW_CONFLICT"),
        2530 => String::from("MQRC_ASYNC_XA_CONFLICT"),
        2531 => String::from("MQRC_PUBSUB_INHIBITED"),
        2532 => String::from("MQRC_MSG_HANDLE_COPY_FAILURE"),
        2533 => String::from("MQRC_DEST_CLASS_NOT_ALTERABLE"),
        2534 => String::from("MQRC_OPERATION_NOT_ALLOWED"),
        2535 => String::from("MQRC_ACTION_ERROR"),
        2537 => String::from("MQRC_CHANNEL_NOT_AVAILABLE"),
        2538 => String::from("MQRC_HOST_NOT_AVAILABLE"),
        2539 => String::from("MQRC_CHANNEL_CONFIG_ERROR"),
        2540 => String::from("MQRC_UNKNOWN_CHANNEL_NAME"),
        2541 => String::from("MQRC_LOOPING_PUBLICATION"),
        2542 => String::from("MQRC_ALREADY_JOINED"),
        2543 => String::from("MQRC_STANDBY_Q_MGR"),
        2544 => String::from("MQRC_RECONNECTING"),
        2545 => String::from("MQRC_RECONNECTED"),
        2546 => String::from("MQRC_RECONNECT_QMID_MISMATCH"),
        2547 => String::from("MQRC_RECONNECT_INCOMPATIBLE"),
        2548 => String::from("MQRC_RECONNECT_FAILED"),
        2549 => String::from("MQRC_CALL_INTERRUPTED"),
        2550 => String::from("MQRC_NO_SUBS_MATCHED"),
        2551 => String::from("MQRC_SELECTION_NOT_AVAILABLE"),
        2552 => String::from("MQRC_CHANNEL_SSL_WARNING"),
        2553 => String::from("MQRC_OCSP_URL_ERROR"),
        2554 => String::from("MQRC_CONTENT_ERROR"),
        2555 => String::from("MQRC_RECONNECT_Q_MGR_REQD"),
        2556 => String::from("MQRC_RECONNECT_TIMED_OUT"),
        2557 => String::from("MQRC_PUBLISH_EXIT_ERROR"),
        2558 => String::from("MQRC_COMMINFO_ERROR"),
        2559 => String::from("MQRC_DEF_SYNCPOINT_INHIBITED"),
        2560 => String::from("MQRC_MULTICAST_ONLY"),
        2561 => String::from("MQRC_DATA_SET_NOT_AVAILABLE"),
        2562 => String::from("MQRC_GROUPING_NOT_ALLOWED"),
        2563 => String::from("MQRC_GROUP_ADDRESS_ERROR"),
        2564 => String::from("MQRC_MULTICAST_CONFIG_ERROR"),
        2565 => String::from("MQRC_MULTICAST_INTERFACE_ERROR"),
        2566 => String::from("MQRC_MULTICAST_SEND_ERROR"),
        2567 => String::from("MQRC_MULTICAST_INTERNAL_ERROR"),
        2568 => String::from("MQRC_CONNECTION_NOT_AVAILABLE"),
        2569 => String::from("MQRC_SYNCPOINT_NOT_ALLOWED"),
        2570 => String::from("MQRC_SSL_ALT_PROVIDER_REQUIRED"),
        2571 => String::from("MQRC_MCAST_PUB_STATUS"),
        2572 => String::from("MQRC_MCAST_SUB_STATUS"),
        2573 => String::from("MQRC_PRECONN_EXIT_LOAD_ERROR"),
        2574 => String::from("MQRC_PRECONN_EXIT_NOT_FOUND"),
        2575 => String::from("MQRC_PRECONN_EXIT_ERROR"),
        2576 => String::from("MQRC_CD_ARRAY_ERROR"),
        2577 => String::from("MQRC_CHANNEL_BLOCKED"),
        2578 => String::from("MQRC_CHANNEL_BLOCKED_WARNING"),
        2579 => String::from("MQRC_SUBSCRIPTION_CREATE"),
        2580 => String::from("MQRC_SUBSCRIPTION_DELETE"),
        2581 => String::from("MQRC_SUBSCRIPTION_CHANGE"),
        2582 => String::from("MQRC_SUBSCRIPTION_REFRESH"),
        2583 => String::from("MQRC_INSTALLATION_MISMATCH"),
        2584 => String::from("MQRC_NOT_PRIVILEGED"),
        2586 => String::from("MQRC_PROPERTIES_DISABLED"),
        2587 => String::from("MQRC_HMSG_NOT_AVAILABLE"),
        2588 => String::from("MQRC_EXIT_PROPS_NOT_SUPPORTED"),
        2589 => String::from("MQRC_INSTALLATION_MISSING"),
        2590 => String::from("MQRC_FASTPATH_NOT_AVAILABLE"),
        2591 => String::from("MQRC_CIPHER_SPEC_NOT_SUITE_B"),
        2592 => String::from("MQRC_SUITE_B_ERROR"),
        2593 => String::from("MQRC_CERT_VAL_POLICY_ERROR"),
        2594 => String::from("MQRC_PASSWORD_PROTECTION_ERROR"),
        2595 => String::from("MQRC_CSP_ERROR"),
        2596 => String::from("MQRC_CERT_LABEL_NOT_ALLOWED"),
        2598 => String::from("MQRC_ADMIN_TOPIC_STRING_ERROR"),
        2599 => String::from("MQRC_AMQP_NOT_AVAILABLE"),
        2600 => String::from("MQRC_CCDT_URL_ERROR"),
        29440 => String::from("MQRC_SUB_JOIN_NOT_ALTERABLE"),
        6100 => String::from("MQRC_REOPEN_EXCL_INPUT_ERROR"),
        6101 => String::from("MQRC_REOPEN_INQUIRE_ERROR"),
        6102 => String::from("MQRC_REOPEN_SAVED_CONTEXT_ERR"),
        6103 => String::from("MQRC_REOPEN_TEMPORARY_Q_ERROR"),
        6104 => String::from("MQRC_ATTRIBUTE_LOCKED"),
        6105 => String::from("MQRC_CURSOR_NOT_VALID"),
        6106 => String::from("MQRC_ENCODING_ERROR"),
        6107 => String::from("MQRC_STRUC_ID_ERROR"),
        6108 => String::from("MQRC_NULL_POINTER"),
        6109 => String::from("MQRC_NO_CONNECTION_REFERENCE"),
        6110 => String::from("MQRC_NO_BUFFER"),
        6111 => String::from("MQRC_BINARY_DATA_LENGTH_ERROR"),
        6112 => String::from("MQRC_BUFFER_NOT_AUTOMATIC"),
        6113 => String::from("MQRC_INSUFFICIENT_BUFFER"),
        6114 => String::from("MQRC_INSUFFICIENT_DATA"),
        6115 => String::from("MQRC_DATA_TRUNCATED"),
        6116 => String::from("MQRC_ZERO_LENGTH"),
        6117 => String::from("MQRC_NEGATIVE_LENGTH"),
        6118 => String::from("MQRC_NEGATIVE_OFFSET"),
        6119 => String::from("MQRC_INCONSISTENT_FORMAT"),
        6120 => String::from("MQRC_INCONSISTENT_OBJECT_STATE"),
        6121 => String::from("MQRC_CONTEXT_OBJECT_NOT_VALID"),
        6122 => String::from("MQRC_CONTEXT_OPEN_ERROR"),
        6123 => String::from("MQRC_STRUC_LENGTH_ERROR"),
        6124 => String::from("MQRC_NOT_CONNECTED"),
        6125 => String::from("MQRC_NOT_OPEN"),
        6126 => String::from("MQRC_DISTRIBUTION_LIST_EMPTY"),
        6127 => String::from("MQRC_INCONSISTENT_OPEN_OPTIONS"),
        6128 => String::from("MQRC_WRONG_VERSION"),
        6129 => String::from("MQRC_REFERENCE_ERROR"),
        6130 => String::from("MQRC_XR_NOT_AVAILABLE"),
        900 => String::from("MQRC_APPL_FIRST"),
        999 => String::from("MQRC_APPL_LAST"),
        e => format!("UNKNOWN_RC_{}", e), 
    }
}

pub fn cc_to_desc_string(cc: i32) -> String {
    match cc {
        -1 => String::from("MQCC_UNKNOWN"),
        0 => String::from("MQCC_OK"),
        1 => String::from("MQCC_WARNING"),
        2 => String::from("MQCC_FAILED"),
        e => format!("UNKNOWN_CC_{}", e),
    }
}
